#!/bin/bash

cd /opt/

#wget  http://ftp.piotrkosoft.net/pub/mirrors/ftp.apache.org/tomcat/tomcat-7/v7.0.50/bin/apache-tomcat-7.0.50.zip
#unzip apache-tomcat-7.0.50.zip
#ln -s apache-tomcat-7.0.50 tomcat
#chmod u+x /opt/tomcat/bin/*.sh
#cd -
#cp conf/tomcat-users.xml /opt/tomcat/conf/


wget http://ftp.ps.pl/pub/apache/tomcat/tomcat-8/v8.0.3/bin/apache-tomcat-8.0.3.zip


unzip apache-tomcat-7.0.50.zip
ln -s apache-tomcat-7.0.50 tomcat
chmod u+x /opt/tomcat/bin/*.sh
cd -
cp conf/tomcat-users.xml /opt/tomcat/conf/
